package com.wang.controller.inner;

import com.wang.domain.GoodsOrder;
import com.wang.service.IGoodsOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wangyandong
 * @date 2020/1/31 22:28
 */
@RestController
@RequestMapping("/inner/goods_order/")
public class GoodsOrderController {

    @Autowired
    private IGoodsOrderService goodsOrderService;

    @GetMapping("/getById/{orderId}")
    public GoodsOrder getById(@PathVariable("orderId") Integer orderId){
        return goodsOrderService.getById(orderId);
    }
}
